{extend name='admin@public/content'}

{block name='content'}
<form onsubmit="return false;" action="" data-auto="true" method="post" class='form-horizontal layui-form' style='padding-top:20px'>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            PC头部图标：<br><span class="nowrap color-desc"></span>
        </label>
        <div class='col-sm-8'>
            <input type="hidden" name="4[name]" value="logo">
            <input type="hidden" name="4[title]" value="PC头部logo">
            <img data-tips-image style="height:auto;max-height:100px;" src="{:setting('logo') ?: '__STATIC__/theme/img/image.png'}"/>
            <input type="hidden" name="4[value]" onchange="$(this).prev('img').attr('src', this.value)" value="{:setting('logo')}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-uptype="" data-type="png,jpg,jpeg" data-field="4[value]" title="浏览器图标">上传图片</a>
            <p class="help-block">尺寸202*56</p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            手机端二维码：<br><span class="nowrap color-desc"></span>
        </label>
        <div class='col-sm-8'>
            <input type="hidden" name="5[name]" value="ewm">
            <input type="hidden" name="5[title]" value="手机端二维码">
            <img data-tips-image style="height:auto;max-height:100px;" src="{:setting('ewm') ?: '__STATIC__/theme/img/image.png'}"/>
            <input type="hidden" name="5[value]" onchange="$(this).prev('img').attr('src', this.value)" value="{:setting('ewm')}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-uptype="" data-type="png,jpg,jpeg" data-field="5[value]" title="二维码">上传图片</a>
            <p class="help-block"><a href="http://www.liantu.com/" target="_blank">二维码在线制作</a></p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">
            浏览器icon：<br><span class="nowrap color-desc"></span>
        </label>
        <div class='col-sm-8'>
            <input type="hidden" name="1[name]" value="logo_icon">
            <input type="hidden" name="1[title]" value="PC浏览器图标">
            <img data-tips-image style="height:auto;max-height:32px;min-width:32px" src="{:setting('logo_icon') ?: '__STATIC__/theme/img/image.png'}"/>
            <input type="hidden" name="1[value]" onchange="$(this).prev('img').attr('src', this.value)" value="{:setting('logo_icon')}" class="layui-input">
            <a class="btn btn-link" data-file="one" data-uptype="" data-type="png,jpg,jpeg,ico" data-field="1[value]" title="浏览器图标">上传图片</a>
            <p class="help-block">此图标用于网站标题前，<a href="http://www.favicon-icon-generator.com/" target="_blank">ICON在线制作</a></p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">网站版权信息：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="hidden" name="2[name]" value="banquan">
            <input type="hidden" name="2[title]" value="网站版权信息">
            <input type="tel" name="2[value]" title="请输入网站版权信息" required placeholder="请输入" value="{:setting('banquan')}" class="layui-input">
            <p class="help-block"></p>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">网站备案信息：<span class="nowrap"></span></label>
        <div class='col-sm-8'>
            <input type="hidden" name="3[name]" value="beian">
            <input type="hidden" name="3[title]" value="网站备案信息">
            <input type="tel" name="3[value]" title="请输入网站备案信息" required placeholder="请输入" value="{:setting('beian')}" class="layui-input">
            <p class="help-block"></p>
        </div>
    </div>
    <div class="hr-line-dashed"></div>

    <div class="col-sm-8 col-sm-offset-2">
        <div class="layui-form-item text-left">
            <button class="layui-btn" type="submit">保存</button>
        </div>
    </div>
    <script>
        form.render();
    </script>
</form>

{/block}